from lxml import etree

xml_doc= '''
<bookstore>
    <book>
        <title lang="eng">Harry Potter</title>
        <price>29.99</price>
    </book>
    <book>
        <title lang="eng">Learning XML</title>
        <price>39.95</price>
    </book>
</bookstore>
'''

root_node = etree.fromstring(xml_doc)

print(root_node)

res1 = root_node.find('.//price').text
print(res1)

res2 = root_node.findall('.//price')[0].text
print(res2)

res3 = root_node.xpath('.//price')[0].text
print(res3)